require "migration_helpers"
class CreateVersions < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :versions do |t|
      t.column :about, :string
      t.column :meta_id, :integer
      t.column :version_doc_id, :integer
    end
    foreign_key(:versions, :meta_id, :metas)
    foreign_key(:versions, :version_doc_id, :version_docs)
  end

  def self.down
    drop_table :versions
  end
end
